package com.example.buhui.service;

import com.example.buhui.dao.EmployeeMapper;
import com.example.buhui.entity.Employee;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;
import java.util.List;

public class EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    public List<Employee> findAll() {
        List<Employee> list = employeeMapper.selectList(null);
        return list;
    }
}
